API V2 Endpoints
Eggplant Public API
Version 2.0
Path Table
| Method | Path | Description |
|---|---|---|
| POST | /auth | Obtain an access token from a client ID and secret |
| GET | /test_results | List test results |
| GET | /test_results/{test_result_id} | Get the result of a single test |
| GET | /test_results/{test_result_id}/logs | Get the logs for a single test |
| GET | /test_results/{test_result_id}/screenshots | List the available screenshots for a test |
| GET | /screenshots/{screenshot_id} | Download a screenshot for a test result |
| GET | /test_config_results | List test config results |
| GET | /test_config_results/{test_config_result_id} | Get a test config result |
| GET | /test_config_results/{test_config_result_id}/junit | Get the results of a test config run in junit format |
Reference Table
| Name | Type | Description |
|---|---|---|
| AuthRequestBody | Schema | |
| AuthResponseBody | Schema | |
| HTTPValidationError | Schema | |
| Problem | Schema | |
| RunType | Schema | The possible run types for a particular test result. |
| Screenshot | Schema | Info of an available screenshot for a particular test result. |
| ScreenshotsPaginatedList | Schema | A paginated list of a single test result's screenshots available. |
| Severity | Schema | The severity levels of a single test result log entry. |
| SortBy | Schema | The possible sorting options available for sorting a list of test results. |
| SortDirection | Schema | The possible direction applied during sorting. |
| Stage | Schema | |
| Status | Schema | The possible statuses for a particular test result. |
| TestConfigResult | Schema | |
| TestConfigResultSortBy | Schema | |
| TestConfigResultsPaginatedList | Schema | |
| TestConfigStatus | Schema | The possible statuses for a particular test config result. |
| TestResult | Schema | The test result containing all the information for a single exploratory, replay or test case execution. |
| TestResultLogEntriesPaginatedList | Schema | A paginated list of a single test result's log entries. |
| TestResultLogEntry | Schema | A single log entry from a particular test result. |
| TestResultsPaginatedList | Schema | A paginated list of the test results. |
| ValidationError | Schema |
Path Details
[POST] /auth
Summary:
Obtain an access token from a client ID and secret
RequestBody
application/json
{
client_id: string
client_secret: string
}
Responses
200 OK
application/json
{
access_token: string
expires_in: integer
}
401 Unauthorized
application/json
{
status: integer //default: 400
title: Partial(string) & Partial(null)
detail: Partial(string) & Partial(null)
type: Partial(string) & Partial(null)
}